#include <bits/stdc++.h>
using namespace std;
int y, m, d;
int main() {
    scanf("%d/%d/%d", &y, &m, &d);
    if((y < 2019) || (y == 2019 && m < 4) || (y == 2019 && m == 4 && d <= 30)) {
        cout << "Heisei";
    } else {
        cout << "TBD";
    }
}
